package com.simin.mall.utils;

/**
 * Created by wsm on 2024/9/19.
 * <p>连续点击拦截
 */
public class DoubleClickUtils {
    private static long lastClickTime = 0;

    public static boolean isFastDoubleClick() {
        long nowTime = System.currentTimeMillis();
        if (nowTime - lastClickTime < 500) {//500ms
            return true;
        }
        lastClickTime = nowTime;
        return false;
    }
}
